var pathName = window.document.location.pathname;
var basePath = pathName.substring (0, pathName.substr (1).indexOf ('/') + 1);


//立即购买
$("body").on('click',".submit",function()
		{
			 	layer.msg("成功生成订单",{time: 1000, icon:1});
					layer.msg("向商家发送消息",{time: 1000, icon:1});
			websocket.send(JSON.stringify(
					    			 {
					    			 	"type":"1",
					    			 	"shopid":"15",
					    			 	"userid":"1"
					    			 }
					    			));
			
		});
